import request from '@/utils/request'


export default () => ({

  //列表
  PROJECT_START_CHECK_LIST:function (data) {
    return request({
      url: `/check/list`,
      method: 'post',
      data
    })
  },

  //详情---审批
  PROJECT_START_CHECK_DETAIL:function (id) {
    return request({
      url: `/check/detail?id=${id}`,
      method: 'get',
    })
  },

  //详情---项目
  PROJECT_START_CHECK_PROJECT_DETAIL:function (id,code) {
    return request({
      url: `/project-start/project/detail-by-check-id?id=${id}&code=${code}`,
      method: 'get',
    })
  },

  //详情---变更
  PROJECT_START_CHECK_CHANGE_DETAIL:function (id) {
    return request({
      url: `/project-start/change/detail-by-check-id?id=${id}`,
      method: 'get',
    })
  },

  //详情---项目暂停、停止
  PROJECT_START_CHECK_STOP_DETAIL:function (id) {
    return request({
      url: `/project-start/stop/detail-by-check-id?id=${id}`,
      method: 'get',
    })
  },

  //详情---任务
  PROJECT_START_CHECK_TASK_DETAIL:function (id) {
    return request({
      url: `/project-start/task/detail-by-check-id?id=${id}`,
      method: 'get',
    })
  },

  //审批---项目
  PROJECT_START_PROJECT_CHECK:function (data,code) {
    return request({
      url: `/project-start/project/check?code=${code}`,
      method: 'post',
      data
    })
  },

  //审批---变更
  PROJECT_START_CHANGE_CHECK:function (data) {
    return request({
      url: `/project-start/change/check`,
      method: 'post',
      data
    })
  },

  //审批---项目暂停、停止
  PROJECT_START_STOP_CHECK:function (data) {
    return request({
      url: `/project-start/stop/check`,
      method: 'post',
      data
    })
  },

  //审批---任务
  PROJECT_START_TASK_CHECK:function (data) {
    return request({
      url: `/project-start/task/check`,
      method: 'post',
      data
    })
  },

})
